Players = new Meteor.Collection("Players");

Template.players.players = function () {
    return Players.find();
};

Template.players.selected = function(){
    return Session.equals("currentUser",this._id)?"success":"";
};




Template.players.events({
    "click tr":function(event){
        //$(event.currentTarget).addClass('success');
        Session.set("currentUser",this._id);
    },
    "click .addscope":function(event){
        Players.update(this._id,{$inc:{scope:1}});
    }

});



